import request from '@/utils/request'

// 查询订单详细纪录列表
export function listBillDetail(query) {
  return request({
    url: '/bill/billDetailRecord/list',
    method: 'get',
    params: query
  })
}

// 查询订单详细纪录详细
export function getBillDetail(id) {
  return request({
    url: '/bill/billDetailRecord/' + id,
    method: 'get'
  })
}

// 新增订单详细纪录
export function addBillDetail(data) {
  return request({
    url: '/bill/billDetailRecord',
    method: 'post',
    data: data
  })
}

// 修改订单详细纪录
export function updateBillDetail(data) {
  return request({
    url: '/bill/billDetailRecord',
    method: 'put',
    data: data
  })
}

// 删除订单详细纪录
export function delBillDetail(id) {
  return request({
    url: '/bill/billDetailRecord/' + id,
    method: 'delete'
  })
}
